import React, { useState } from "react";
import ArtistPage from "./ArtistPage";

interface AppProps {}
const App: React.FC<AppProps> = () => {
  const [show, setShow] = useState(false);

  if (show) {
    return <ArtistPage artist={{ id: "the-beatles", name: "The Beatles" }} />;
  }

  return <button onClick={() => setShow(true)}>Open The Beatles artist page</button>;
};
export default App;
